{% extends "base.html" %}

{% block title %}Registration complete{% endblock %}

{% block javascript %}
<script type="text/javascript" src="{% url base_static "js/jquery-1.6.4.min.js" %}"></script>
<script type="text/javascript">
$(function() {
    $("form").submit(function(){
        var keyValue = $("#keyValue").val();
        var addr = "http://localhost:8000/accounts/activate/" + keyValue + "/";
        window.location.replace(addr);
        return false;
    });
});
</script>
{% endblock %}

{% block content %}
<h1>Check your SMS</h1>

<form>
Key : <input id="keyValue" type="text" name="key" /><input type="submit" />
</form>

<p>An activation link has been sent to the sms you supplied, along with instructions for activating your account.</p>
{% endblock %}